package com.kayt.cyberBar.cuser.business.dao.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.kayt.cyberBar.common.dao.EntityDao;
import com.kayt.cyberBar.cuser.business.dao.IPositionTaskAppointDao;
import com.kayt.cyberBar.cuser.business.entity.po.BPositionTaskAppoint;

@Repository("positionTaskAppointDao")
public class PositionTaskAppointDaoImpl implements IPositionTaskAppointDao {
	@Autowired
	private EntityDao entityDao;
	
	@Override
	public void saveOrUpdate(BPositionTaskAppoint entity) throws SQLException {
		if(entity.getId() != null){
			entityDao.update(entity);
		}else{
			entityDao.save(entity);
		}
	}

}
